﻿using System;
using System.Xml;

namespace Genko.Model.Integration.Xml
{
	internal class XmlMemberAdapter : AbstractMemberAdapter
	{
		private XmlNode source = null;
		
		public XmlMemberAdapter()
		{
		
		}

		public XmlMemberAdapter(string xmlDoc)
		{

		}

		public XmlMemberAdapter(XmlDocument xmlDoc)
		{
			this.source = xmlDoc.DocumentElement;
		}
		
		public virtual XmlNode Source
		{
			get { return this.source; }
			set { this.source = value; }
		}
		
		public override IMemberReader GetReader()
		{
			return new XmlMemberReader(this.Source);
		}

		public override IMemberWriter GetWriter()
		{
			return new XmlMemberWriter();
		}
	}
}
